// filename: Enemy.cpp
// author: enic
// date: 2016-03-14

#include "Enemy.h"
#include "../XLib/XBase/string_utf_convert.h"

namespace EZFY
{
	cocos2d::Animation* Get()
	{
		cocos2d::Animation* pAnimate = cocos2d::Animation::create();
		for (int i = 0; i <= 9; i++)
		{
			std::wstringstream ssTem;
			ssTem << _T("Object/G2/G2_") << i << _T(".png");
			pAnimate->addSpriteFrame(cocos2d::SpriteFrameCache::getInstance()->getSpriteFrameByName(XU16T8(ssTem.str())));
		}

		return pAnimate;
	}

	bool Enemy::init()
	{
		return true;
	}
}